package com.ropeok.entity;

import java.util.Date;

/**
 * @BelongsProject: task2
 * @BelongsPackage: com.ropeok.entity
 * @Author: zhofeifan
 * @CreateTime: 2022-08-23  14:21
 * @Description: 用户
 * @Version: 1.0
 */
public class User  {
    private  long id;//id

    private  String name;//用户姓名
    private  int sex;//用户性别
    private String address;//用户住址
    private Date birthday;//用户生日

    public String getName() {
        return name;
    }

    public User() {
    }

    public User(long id, String name, int sex, String address, Date birthday) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.address = address;
        this.birthday = birthday;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
